#ifndef __DIRSCANNER_H__
#define __DIRSCANNER_H__

#include <dirent.h>
#include <cstring>
#include <iostream>
#include <string>
#include <vector>

class DirScanner {
   private:
    std::vector<std::string> _files;

   public:
    DirScanner();
    ~DirScanner();

    void operator()(const std::string& path);

    std::vector<std::string>& files();

   private:
    void traverse(const std::string& dirname);
};

#endif